package com.gxa.customer.controller;

import com.gxa.common.commons.R;
import com.gxa.customer.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/customer/country")
public class CountryController {
    @Autowired
    private CountryService countryService;

    //查询所有国家
    @GetMapping(value = "/selectAllCountry")
    R selectAllCountry(){
        return countryService.selectAllCountry();
    }
}
